package 装饰模式;

// 实现具体的装饰器类
class MilkDecorator extends CoffeeDecorator {
    public MilkDecorator(Coffee coffee) {
        super(coffee);
    }
 
    @Override
    public double cost() {
        return super.cost() + 1.0;
    }
 
    @Override
    public String description() {
        return super.description() + ", with Milk";
    }
}